module.exports = {
    redis: {
        port: process.env.REDIS_PORT || '6379',
        host: process.env.REDIS_HOST || '127.0.0.1',
        options: {
            connect_timeout: (parseInt(process.env.REDIS_CONNECT_TIMEOUT) * 1000) || 3000,
            password: process.env.REDIS_PASSWORD,
            db: process.env.REDIS_DB_INDEX || 1
        },
        expire: process.env.REDIS_EXPIRE || 3600
    },
    gitee: {
        username: process.env.GITEE_USERNAME || '本地启动时需要修改该参数',
        password: process.env.GITEE_PASSWORD || '本地启动时需要修改该参数',
        clientId: process.env.GITEE_CLIENT_ID || '本地启动时需要修改该参数',
        clientSecret: process.env.GITEE_CLIENT_SECRET || '本地启动时需要修改该参数',
        tokenUrl: 'https://gitee.com/oauth/token',
        scope: 'projects user_info',
        tokenCacheKey: 'gitee:token',
    },
    contributors: {
        contributorsDir: process.env.CONTRIBUTORS_DIR || 'D:/var/gs/contributors',
    }
}
